NDepend.API Documentation
UsAndParentTypes(IEnumerable<IMember>) Method
NDepend.CodeModel Namespace > ExtensionMethodsProjection Class > UsAndParentTypes Method : UsAndParentTypes(IEnumerable<IMember>) Method
This sequence of IMember objects.
Returns a sequence of IMember objects, containing these members and and all their IMember.ParentType objects.
Syntax
[Extension()]
public static IEnumerable<IMember> UsAndParentTypes( 
   IEnumerable<IMember> members
)

Parameters

members
This sequence of IMember objects.
Remarks
For a IType object in the sequence members, a parent type is added to the result sequence only if it is a nested type.
If such a type is nested in a nested type all its parents types are added to the result sequence.
If the parent type of a nested type is already in the sequence members, it is not added a second time because all sequences returned by projection methods are doublon-free.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsProjection Class
ExtensionMethodsProjection Members
Overload List